﻿
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using System.Xml;
using System.Windows.Documents;
using 卷书;
using 卷书.Utils;

namespace 卷书
{
    /// <summary>
    /// Settings.xaml 的交互逻辑
    /// </summary>
    public partial class Dialog_About : BaseDialog
    {

        public Dialog_About(Window owner, bool showbutton) : base(owner, showbutton)
        {
            InitializeComponent();

        }

        private void OpenUrl(object sender, RoutedEventArgs e)
        {
            Hyperlink hyperlink = sender as Hyperlink;
            //FileHelper.TryOpenUrl(hyperlink.NavigateUri.ToString());
        }

        private void BaseDialog_ContentRendered(object sender, EventArgs e)
        {
            //VersionTextBlock.Text = Jvedio.Language.Resources.Version + $" : {System.Reflection.Assembly.GetExecutingAssembly().GetName().Version}";
        }

        private void BaseDialog_ContentRendered_1(object sender, EventArgs e)
        {
            VersionTextBlock.Text = "版本： " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
        }



        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Process.Start(Global.GITEE_URL);
        }
    }
}